myApp.factory('obdService', ['$http', '$q', '$rootScope', function ($http, $q, $rootScope) {
    var obdService = {};
    var apiUrl = $rootScope.url + '/web/obd';
    var that = this; //
    var defered = $q.defer();
    var url = $rootScope.urlZ;
    var postCfg = {
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
        transformRequest: function (data) {
            return $.param(data);
        }
    };
    /*
     *获取obd列表
     * */
    obdService.getList = function () {
        return $http.get(apiUrl + '');
    };


    return obdService;
}]);
